<ui:composition
		xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:a4j="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		>
	<f:loadBundle basename="bundle.common" var="commonBundle"/>


	<rich:panel id="#{idPrefix}TablePanel" styleClass="transparent">

		<a4j:form>
			<rich:panel id="#{idPrefix}AddPanel">
				<f:facet name="header">
					<h:panelGroup>
						<h:outputText value="#{commonBundle.adding} _#{idPrefix}_" rendered="#{actionBean.record.new}"/>
						<h:outputText value="#{commonBundle.editing} _#{idPrefix}_"
									  rendered="#{!actionBean.record.new}"/>
					</h:panelGroup>
				</f:facet>
				<ui:insert name="editPanelContext"/>
				<br/>
				<a4j:commandButton value="#{commonBundle.save}" action="#{actionBean.save}"
								   reRender="#{idPrefix}TablePanel"/>
				<a4j:commandButton value="#{commonBundle.cancel}" action="#{actionBean.cancel}"
								   reRender="#{idPrefix}TablePanel" immediate="true"/>
				<h:commandButton value="#{commonBundle.reset}" type="reset" rendered="false"/>
			</rich:panel>
		</a4j:form>


	</rich:panel>

</ui:composition>